package com.justgame.project.service.api.feign;

import com.justgame.project.cloud.common.constant.AppConstant;
import com.justgame.project.service.api.vo.JustGameInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * JustGameInfo 微服务接口
 * @author ZhouWeiBo
 * @create 2022/4/20
 */
@FeignClient(value = AppConstant.JUST,fallback = JustGameInfoClientFallback.class)
public interface IJustGameInfoClient {
    String API_PREFIX = "/feign/just_game_info";
    String GET_BY_ID = API_PREFIX + "/get-by-id";

    /**
     * 通过id查询
     * @param id
     * @return
     */
    @GetMapping(GET_BY_ID)
    JustGameInfoVO selectById(@RequestParam("id") String id);
}
